package com.yuanfeng.userms.vo;

import com.yuanfeng.commoms.util.DateUtils;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserInviteRecordVO {
    /**
     * id
     */
    private Integer id;
    /**
     *用户id
     */
    private String userId;
    /**
     *用户名
     */
    private String userName;
    /**
     *手机
     */
    private String userMobile;
    /**
     *头像
     */
    private String userAvatar;
    /**
     *分享用户id
     */
    private String shareUserId;
    /**
     * 关联id
     */
    private String relevanceId;
    /**
     *邀请时间
     */
    private String inviteTime;
    /**
     *邀请类型 1申请微客邀请   2首次分享购买邀请
     */
    private Integer inviteType;

    public UserInviteRecordVO(UserInfoDetailVO  userInfo, String shareUserId) {
        this.userId = userInfo.getUserId();
        this.userName = userInfo.getUserName();
        this.userMobile = userInfo.getUserMobile();
        this.userAvatar = userInfo.getUserAvatar();
        this.shareUserId = shareUserId;
        this.relevanceId = shareUserId+"";
        this.inviteTime = DateUtils.getNowDateToString();
    }
}
